<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @font-face {
            font-family: ldzy;
            src: url("font/xiaokenailaoti.ttf");
        }
    span{
        display: block;
        height: 30px;
        width: 200px;
        line-height: 30px;  
        /* text-shadow: 10px 10px 10px #2c41ff; */
        white-space: nowrap;
        /* 强制不换行 */
        overflow: hidden;
        text-overflow: ellipsis;    
    }   
    .myicon{
        color: red;
        font-size: 50px;
    }    
    </style>
    <link rel="stylesheet" href="./css/font-awesome.min.css">
</head>
<body>  
    <span>overflow属性和hidden值用于设置隐藏超过容器宽度的部分</span>    
    <i class="myicon icon-glass"></i>
</body>
</html>